package com.symaster.gameengine.e2d.renderer.particle;

import com.symaster.gameengine.core.Renderer;

/**
 * @author yinmiao
 * @since 2024/9/19
 */
class ParticleBlockItemRenderer extends Renderer {

    private final int size;
    private final float r;
    private final float g;
    private final float b;
    private final float a;
    private final float angle;

    public ParticleBlockItemRenderer(int size, float r, float g, float b, float a, float angle) {
        this.size = size;
        this.r = r;
        this.g = g;
        this.b = b;
        this.a = a;
        this.angle = angle;
        setStaticRenderer(true);
    }

    /**
     * @return 当前渲染器需要框架分配的显示的大小
     */
    @Override
    public int getWidth() {
        return size;
    }

    /**
     * @return 当前渲染器需要框架分配的显示的大小
     */
    @Override
    public int getHeight() {
        return size;
    }

    /**
     * 子组件使用, 在当前Fbo缓冲区里面绘制
     */
    @Override
    protected void draw() {

    }
}
